namespace Models
{
    /// <summary>
    /// 邮件服务配置类，用于存储SMTP服务器配置信息
    /// </summary>
    public class EmailSettings
    {
        /// <summary>
        /// SMTP服务器地址
        /// </summary>
        public string SmtpServer { get; set; } = null!;

        /// <summary>
        /// SMTP服务器端口
        /// </summary>
        public int SmtpPort { get; set; }

        /// <summary>
        /// SMTP用户名
        /// </summary>
        public string SmtpUsername { get; set; } = null!;

        /// <summary>
        /// SMTP密码
        /// </summary>
        public string SmtpPassword { get; set; } = null!;

        /// <summary>
        /// 发件人邮箱地址
        /// </summary>
        public string SenderEmail { get; set; } = null!;

        /// <summary>
        /// 发件人显示名称
        /// </summary>
        public string? SenderName { get; set; }

        /// <summary>
        /// 是否启用SSL加密
        /// </summary>
        public bool EnableSsl { get; set; } = true;
    }
}